package com.tbit.uqbike.object.pojo;

import lombok.ToString;

import java.util.Date;

/**
 * @author MyWin E-mail:335918956@qq.com
 * @version 1.0
 * @createTime 2020-01-02 20:46
 */
@ToString
public class AccountUserBound {
    private Integer accountUserId;
    private Integer accountId;
    private Date addTime;
    /**
     * 子类型
     */
    private Integer subRoleType;
    /**
     * 失效日期
     */
    private String expireDate;

    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAccountUserId() {
        return accountUserId;
    }

    public void setAccountUserId(Integer accountUserId) {
        this.accountUserId = accountUserId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getSubRoleType() {
        return subRoleType;
    }

    public void setSubRoleType(Integer subRoleType) {
        this.subRoleType = subRoleType;
    }

    public String getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }

    public boolean isAdmin(Integer type) {
        return type == 0;
    }
}
